package com.ht.utils.htmlBean;

import lombok.Data;

@Data
public class Ind {
    private float firstLine;
    private float left;
    private float hanging;
    String toHtml(){
        StringBuilder html = new StringBuilder();
        if(this.left >= 0){
            html.append(" margin-left:").append((this.left - this.hanging) / 1440 * 72).append("pt; ");
        }
        if(this.firstLine > 0){
            html.append(" text-indent:").append(this.firstLine / 1440 * 72).append("pt; ");
        }
        return html.toString();
    }

}
